window.onload=function(){
	//弹窗点击事件
	//市场选货模块
	var addout = document.querySelector("#addout");
	var cancel = document.querySelector("#cancel");
	var addCommodity = document.querySelector(".addCommodity");
	addout.addEventListener("click",function(){
		addCommodity.style.display="block";
	});
	cancel.addEventListener("click",function(){
		addCommodity.style.display="none";
	});
	//推广模块
	var popularize = document.querySelector(".popularize");
	var generalize = document.querySelector(".generalize");
	var cancelShare = document.querySelector("#cancelShare");
	popularize.addEventListener("click",function(){
		generalize.style.display="block";
	});
	cancelShare.addEventListener("click",function(){
		generalize.style.display="none";
	});
}
